import request from "../axios/requestMethod.ts";
import type {AxiosResponse} from "axios";



export const useGetLineDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/line"
    })


export const useGetSunburstDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/sunburst"
    })
export const useGetSankeyDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/sankey"
    })

export const useGetBarDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/bar"
    })


export const useGetWordCloudDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/wordCloud"
    })